﻿namespace NiuX.AspNetCore.DynamicWebApi.Attributes
{
    [Serializable]
    [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class)]
    public class DynamicWebApiAttribute : Attribute
    {
        public DynamicWebApiAttribute()
        {
        }

        public DynamicWebApiAttribute(string areaName)
        {
            AreaName = areaName;
        }

        public string AreaName { get; set; }

        public bool Disabled { get; set; } = false;
    }
}
